package com.example.a2209_mianshi.http

import com.example.a2209_mianshi.base.BaseResponse
import com.example.a2209_mianshi.ui.login.model.GetLoginCodeModel
import com.example.a2209_mianshi.ui.mall.model.MallBanner
import com.example.a2209_mianshi.ui.mall.model.MallBannerModel
import com.example.a2209_mianshi.ui.mall.model.MallGoodModel
import com.example.a2209_mianshi.ui.mall.model.MallGroupModel
import com.example.a2209_mianshi.ui.mall.model.MallHomeRowItem
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface ClubService {
    @GET("/mall/mallHome/cMallGroupList")
    suspend fun getMallGroupList():BaseResponse<MallGoodModel>
    @GET("/mall/mallHome/cmallBannerInfo")
    suspend fun getMallBannerInfo():BaseResponse<MallBannerModel>
    @POST("/app/sms/sendLoginCode")
    suspend fun sendLoginCode(@Query("operatorType") operatorType:String,@Query("phone") phone:String):BaseResponse<Boolean>
    @POST("/app/club_auth/login")
    suspend fun codeLogin(@Body body: RequestBody):BaseResponse<GetLoginCodeModel>
}